package com.feige.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.feige.pojo.SignTask;
import com.feige.pojo.vo.SignStatus;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2020-11-20
 */

@Repository
public interface SignTaskMapper extends BaseMapper<SignTask> {

    /**
     * 获取签到状态
     * @param page
     * @param userId
     * @param courseId
     * @return
     */
    IPage<SignStatus> getSignStatus(@Param("page") IPage<SignStatus> page, @Param("userId") String userId, @Param("courseId") String courseId);
}
